/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const infoTopicRouter = {
  path: '/topic',
  component: Layout,
  redirect: '/topic/list',
  name: 'Topics',
  meta: {
    title: 'Topics',
    icon: 'topic'
  },
  children: [
    {
      path: 'create',
      component: () => import('@/views/info/topic/create'),
      name: 'CreateTopic',
      meta: { title: 'Create Topic', icon: 'edit' },
      hidden: true
    },
    {
      path: 'edit/:id',
      component: () => import('@/views/info/topic/edit'),
      name: 'EditTopic',
      meta: { title: 'Edit Topic', activeMenu: '/topic/list' },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/info/topic/list'),
      name: 'TopicList',
      meta: { title: 'Topics', icon: 'topic' }
    },
    {
      path: 'home/:id',
      component: () => import('@/views/info/topic-snippet/index'),
      name: 'TopicHome',
      meta: { title: 'Topic Home' },
      hidden: true
    }
  ]
}

export default infoTopicRouter
